package fun.chutianshu.eescore_01_jdbc_setup.entity;

import java.time.LocalDate;

// 学生信息实体类
public class Student{
    // 学号
    private int stu_code;

    // 姓名
    private String stu_name;

    //性别
    private int stu_gender;

    //生日
    private LocalDate birthday;
    //照片
    private String photo;

    //微信号
    private String weixin_num;
    //学院
    private String college;
    //系部
    private String department;
    //专业
    private String profession;

    // 年级
    private String grade_num;

    //班级
    private String class_name;

    //身份证号
    private String stu_id;

    //电话
    private String phone_num;

    public Student(int stu_code, String stu_name, int stu_gender, LocalDate birthday, String photo, String weixin_num, String college, String department, String profession, String grade_num, String class_name, String stu_id, String phone_num) {
        this.stu_code = stu_code;
        this.stu_name = stu_name;
        this.stu_gender = stu_gender;
        this.birthday = birthday;
        this.photo = photo;
        this.weixin_num = weixin_num;
        this.college = college;
        this.department = department;
        this.profession = profession;
        this.grade_num = grade_num;
        this.class_name = class_name;
        this.stu_id = stu_id;
        this.phone_num = phone_num;
    }

    public Student(){}

    @Override
    public String toString() {
        return "Student{" +
                "stu_code=" + stu_code +
                ", stu_name='" + stu_name + '\'' +
                ", stu_gender=" + stu_gender +
                ", birthday=" + birthday +
                ", photo='" + photo + '\'' +
                ", weixin_num='" + weixin_num + '\'' +
                ", college='" + college + '\'' +
                ", department='" + department + '\'' +
                ", profession='" + profession + '\'' +
                ", grade_num='" + grade_num + '\'' +
                ", class_name='" + class_name + '\'' +
                ", stu_id='" + stu_id + '\'' +
                ", phone_num='" + phone_num + '\'' +
                '}';
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getWeixin_num() {
        return weixin_num;
    }

    public void setWeixin_num(String weixin_num) {
        this.weixin_num = weixin_num;
    }
    public int getStu_code() {
        return stu_code;
    }

    public void setStu_code(int stu_code) {
        this.stu_code = stu_code;
    }

    public String getStu_name() {
        return stu_name;
    }

    public void setStu_name(String stu_name) {
        this.stu_name = stu_name;
    }

    public int getStu_gender() {
        return stu_gender;
    }

    public void setStu_gender(int stu_gender) {
        this.stu_gender = stu_gender;
    }

    public String getCollege() {
        return college;
    }

    public void setCollege(String college) {
        this.college = college;
    }

    public String getProfession() {
        return profession;
    }

    public void setProfession(String profession) {
        this.profession = profession;
    }

    public String getGradeNum() {
        return grade_num;
    }

    public void setGradeNum(String grade_num) {
        this.grade_num = grade_num;
    }

    public String getClass_name() {
        return class_name;
    }

    public void setClass_name(String class_name) {
        this.class_name = class_name;
    }

    public String getStu_id() {
        return stu_id;
    }

    public void setStu_id(String stu_id) {
        this.stu_id = stu_id;
    }

    public String getPhone_num() {
        return phone_num;
    }

    public void setPhone_num(String phone_num) {
        this.phone_num = phone_num;
    }
}
